package com.wyiot.pet.model.dto;

import com.wyiot.core.enums.PetSizeEnum;
import com.wyiot.core.enums.PetTypeEnum;
import com.wyiot.core.enums.PetWeightEnum;
import com.wyiot.core.api.ValidateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 新增或修改宠物数据传输对象
 *
 * @author Laiqm
 * @since 2022/3/24
 */
@Data
public class PetDTO {
    /**
     * 运单id
     */
    @NotNull(message = "请输入运单id", groups = {ValidateGroup.First.class})
    private Long wayBillId;

    /**
     * 宠物昵称
     */
    @NotBlank(message = "请输入宠物名称", groups = {ValidateGroup.First.class, ValidateGroup.Second.class})
    private String petName;

    /**
     * 宠物体型
     */
    @NotNull(message = "请选择宠物体型", groups = {ValidateGroup.First.class, ValidateGroup.Second.class})
    private PetSizeEnum petSize;

    /**
     * 宠物类别
     */
    @NotNull(message = "请选择宠物类别", groups = {ValidateGroup.First.class, ValidateGroup.Second.class})
    private PetTypeEnum petType;

    /**
     * 宠物重量
     */
    @NotNull(message = "请选择宠物重量", groups = {ValidateGroup.First.class, ValidateGroup.Second.class})
    private PetWeightEnum petWeight;

    /**
     * 宠物过往病例史
     */
    private String petMedicalHistory;

    /**
     * 宠物照片
     */
    private String petPhoto;

    /**
     * 宠物检疫合格照片
     */
    private String petQuarantinePhoto;

}
